<template>
  <div class="wrapper">
    <div class="nav">
      <div class="item" v-for="(item,index) in navData" :key="index">
        <router-link :to="item.path">{{item.title}}</router-link>
      </div>
    </div>
    <div class="app-content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
  import {
    navData
  } from "@/untils/nav"
  import "./assets/css/global.css"
  export default {
    name: 'App',
    components: {},
    setup() {
      return {
        navData
      }
    }
  }
</script>

<style scoped>
  body {
    margin: 0;
    padding: 0;
  }

  .wrapper {
    display: flex;
    flex-flow: row;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10%;
    height: 969px;
    background-color: #eee;
  }
  .nav .item{
    padding: 10px;
  }
  .nav .item a{
    color: black;
    text-decoration: none;
  }
  .app-content {
    width: 90%;
  }

</style>